package com.gnerv.business.platform.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.gnerv.business.platform.entity.Role;
import com.gnerv.business.platform.mapper.RoleMapper;
import com.gnerv.business.platform.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: Gnerv LiGen
 * @date: 2018-07-03
 **/
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public boolean updateByRoleId(Role role) {
        Integer i = roleMapper.updateByRoleId(role);
        return i == 1 ? true : false;
    }
}
